<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//Route::get('/', function () {
//    return view('welcome');
//});
Route::prefix('home')->namespace('Home')->group(function(){
    Route::prefix('article')->group(function(){
        Route::get('index','ArticleController@index');
        Route::get('create','ArticleController@create');
        Route::get('store','ArticleController@store');
    });
    Route::prefix('index')->group(function(){
        Route::get('index','IndexController@index');
    });
});
Route::prefix('admin')->namespace('Admin')->group(function(){
    Route::prefix('article')->group(function(){
        Route::get('index','ArticleController@index');
        Route::get('create','ArticleController@create');
        Route::get('store','ArticleController@store');
        Route::get('edit/{id}','ArticleController@edit');
        Route::get('update/{id}','ArticleController@update');
    });
    Route::prefix('index')->group(function(){
        Route::get('index','IndexController@index');
    });
});

